package cn.itcast.javabase;

/**
 * @title: A04
 * @Author Zhou
 * @Date: 2022/1/18 14:51
 * @Version 1.0
 */
public class A04 {
    public static void main(String[] args) {
        Demo01 demo01 = new Demo01();
        String[] arr01 = {"mike", "sss", "ssa"};
        String[] renew = demo01.renew(arr01);
        for (int i = 0; i < renew.length; i++) {
            System.out.println("renew = " + renew[i]);
        }
    }
}

class Demo01 {
    public String[] renew(String[] arr) {
        String[] newArr = new String[arr.length];
        for (int i = 0; i < arr.length; i++) {
            newArr[i] = arr[i];
        }
        return newArr;
    }
}
